<?php
/*$pageNo = $_GET['pageNo'];*/
//$url=$_GET['url'];
	echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
//	$city=$_GET['city'];
//	$time=$GET['time'];
//	echo $city;exit;
	// 南宁
$ue=$_GET['ue'];
	     //http://newhouse.sh.fang.com/house/ajaxrequest/saledateListGet.php?city=
  $url='http://newhouse.sh.fang.com/house/ajaxrequest/saledateListGet.php?city=上海&month=';
$url=$url.$ue;
	//	$html = https_get($url);
		$html = file_get_contents("compress.zlib://".$url);
		$html = preg_replace_callback("#\\\u([0-9a-f]{4})#", 'replace_unicode_escape_sequence', $html);
		$html = str_ireplace('\r','',$html);
		$html = str_ireplace('\n','',$html);
		$html = str_ireplace('\t','',$html);
		$html = str_ireplace('\"','',$html);

		echo stripslashes($html);

function replace_unicode_escape_sequence($match)  
{         
        return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
} 
  
/**
 * get访问url
 */
function https_get($url){
	$ch = curl_init();
	//设置选项，包括URL
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证证书
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //不验证证书
	//执行并获取HTML文档内容
	$output = curl_exec($ch);
	//释放curl句柄
	curl_close($ch);
	//$result = json_decode($output);
	//$result->subscribe
	return $output;
}

?>